package com.siyuanren.gcocp.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class WxCourseChapterExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WxCourseChapterExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNull() {
            addCriterion("available is null");
            return (Criteria) this;
        }

        public Criteria andAvailableIsNotNull() {
            addCriterion("available is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableEqualTo(Boolean value) {
            addCriterion("available =", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotEqualTo(Boolean value) {
            addCriterion("available <>", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThan(Boolean value) {
            addCriterion("available >", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableGreaterThanOrEqualTo(Boolean value) {
            addCriterion("available >=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThan(Boolean value) {
            addCriterion("available <", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableLessThanOrEqualTo(Boolean value) {
            addCriterion("available <=", value, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableIn(List<Boolean> values) {
            addCriterion("available in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotIn(List<Boolean> values) {
            addCriterion("available not in", values, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableBetween(Boolean value1, Boolean value2) {
            addCriterion("available between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andAvailableNotBetween(Boolean value1, Boolean value2) {
            addCriterion("available not between", value1, value2, "available");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andChapterNameIsNull() {
            addCriterion("chapter_name is null");
            return (Criteria) this;
        }

        public Criteria andChapterNameIsNotNull() {
            addCriterion("chapter_name is not null");
            return (Criteria) this;
        }

        public Criteria andChapterNameEqualTo(String value) {
            addCriterion("chapter_name =", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameNotEqualTo(String value) {
            addCriterion("chapter_name <>", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameGreaterThan(String value) {
            addCriterion("chapter_name >", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameGreaterThanOrEqualTo(String value) {
            addCriterion("chapter_name >=", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameLessThan(String value) {
            addCriterion("chapter_name <", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameLessThanOrEqualTo(String value) {
            addCriterion("chapter_name <=", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameLike(String value) {
            addCriterion("chapter_name like", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameNotLike(String value) {
            addCriterion("chapter_name not like", value, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameIn(List<String> values) {
            addCriterion("chapter_name in", values, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameNotIn(List<String> values) {
            addCriterion("chapter_name not in", values, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameBetween(String value1, String value2) {
            addCriterion("chapter_name between", value1, value2, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterNameNotBetween(String value1, String value2) {
            addCriterion("chapter_name not between", value1, value2, "chapterName");
            return (Criteria) this;
        }

        public Criteria andChapterRatioIsNull() {
            addCriterion("chapter_ratio is null");
            return (Criteria) this;
        }

        public Criteria andChapterRatioIsNotNull() {
            addCriterion("chapter_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andChapterRatioEqualTo(Integer value) {
            addCriterion("chapter_ratio =", value, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioNotEqualTo(Integer value) {
            addCriterion("chapter_ratio <>", value, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioGreaterThan(Integer value) {
            addCriterion("chapter_ratio >", value, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_ratio >=", value, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioLessThan(Integer value) {
            addCriterion("chapter_ratio <", value, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_ratio <=", value, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioIn(List<Integer> values) {
            addCriterion("chapter_ratio in", values, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioNotIn(List<Integer> values) {
            addCriterion("chapter_ratio not in", values, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioBetween(Integer value1, Integer value2) {
            addCriterion("chapter_ratio between", value1, value2, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterRatioNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_ratio not between", value1, value2, "chapterRatio");
            return (Criteria) this;
        }

        public Criteria andChapterNumberIsNull() {
            addCriterion("chapter_number is null");
            return (Criteria) this;
        }

        public Criteria andChapterNumberIsNotNull() {
            addCriterion("chapter_number is not null");
            return (Criteria) this;
        }

        public Criteria andChapterNumberEqualTo(Integer value) {
            addCriterion("chapter_number =", value, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberNotEqualTo(Integer value) {
            addCriterion("chapter_number <>", value, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberGreaterThan(Integer value) {
            addCriterion("chapter_number >", value, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_number >=", value, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberLessThan(Integer value) {
            addCriterion("chapter_number <", value, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_number <=", value, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberIn(List<Integer> values) {
            addCriterion("chapter_number in", values, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberNotIn(List<Integer> values) {
            addCriterion("chapter_number not in", values, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberBetween(Integer value1, Integer value2) {
            addCriterion("chapter_number between", value1, value2, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andChapterNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_number not between", value1, value2, "chapterNumber");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleIsNull() {
            addCriterion("homework_title is null");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleIsNotNull() {
            addCriterion("homework_title is not null");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleEqualTo(String value) {
            addCriterion("homework_title =", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleNotEqualTo(String value) {
            addCriterion("homework_title <>", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleGreaterThan(String value) {
            addCriterion("homework_title >", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleGreaterThanOrEqualTo(String value) {
            addCriterion("homework_title >=", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleLessThan(String value) {
            addCriterion("homework_title <", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleLessThanOrEqualTo(String value) {
            addCriterion("homework_title <=", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleLike(String value) {
            addCriterion("homework_title like", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleNotLike(String value) {
            addCriterion("homework_title not like", value, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleIn(List<String> values) {
            addCriterion("homework_title in", values, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleNotIn(List<String> values) {
            addCriterion("homework_title not in", values, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleBetween(String value1, String value2) {
            addCriterion("homework_title between", value1, value2, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andHomeworkTitleNotBetween(String value1, String value2) {
            addCriterion("homework_title not between", value1, value2, "homeworkTitle");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNull() {
            addCriterion("course_id is null");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNotNull() {
            addCriterion("course_id is not null");
            return (Criteria) this;
        }

        public Criteria andCourseIdEqualTo(Integer value) {
            addCriterion("course_id =", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotEqualTo(Integer value) {
            addCriterion("course_id <>", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThan(Integer value) {
            addCriterion("course_id >", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_id >=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThan(Integer value) {
            addCriterion("course_id <", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThanOrEqualTo(Integer value) {
            addCriterion("course_id <=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIn(List<Integer> values) {
            addCriterion("course_id in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotIn(List<Integer> values) {
            addCriterion("course_id not in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdBetween(Integer value1, Integer value2) {
            addCriterion("course_id between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("course_id not between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountIsNull() {
            addCriterion("chapter_content_count is null");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountIsNotNull() {
            addCriterion("chapter_content_count is not null");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountEqualTo(Integer value) {
            addCriterion("chapter_content_count =", value, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountNotEqualTo(Integer value) {
            addCriterion("chapter_content_count <>", value, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountGreaterThan(Integer value) {
            addCriterion("chapter_content_count >", value, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_content_count >=", value, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountLessThan(Integer value) {
            addCriterion("chapter_content_count <", value, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_content_count <=", value, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountIn(List<Integer> values) {
            addCriterion("chapter_content_count in", values, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountNotIn(List<Integer> values) {
            addCriterion("chapter_content_count not in", values, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountBetween(Integer value1, Integer value2) {
            addCriterion("chapter_content_count between", value1, value2, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterContentCountNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_content_count not between", value1, value2, "chapterContentCount");
            return (Criteria) this;
        }

        public Criteria andChapterScoreIsNull() {
            addCriterion("chapter_score is null");
            return (Criteria) this;
        }

        public Criteria andChapterScoreIsNotNull() {
            addCriterion("chapter_score is not null");
            return (Criteria) this;
        }

        public Criteria andChapterScoreEqualTo(Integer value) {
            addCriterion("chapter_score =", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreNotEqualTo(Integer value) {
            addCriterion("chapter_score <>", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreGreaterThan(Integer value) {
            addCriterion("chapter_score >", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("chapter_score >=", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreLessThan(Integer value) {
            addCriterion("chapter_score <", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreLessThanOrEqualTo(Integer value) {
            addCriterion("chapter_score <=", value, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreIn(List<Integer> values) {
            addCriterion("chapter_score in", values, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreNotIn(List<Integer> values) {
            addCriterion("chapter_score not in", values, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreBetween(Integer value1, Integer value2) {
            addCriterion("chapter_score between", value1, value2, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andChapterScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("chapter_score not between", value1, value2, "chapterScore");
            return (Criteria) this;
        }

        public Criteria andTeacherIdIsNull() {
            addCriterion("teacher_id is null");
            return (Criteria) this;
        }

        public Criteria andTeacherIdIsNotNull() {
            addCriterion("teacher_id is not null");
            return (Criteria) this;
        }

        public Criteria andTeacherIdEqualTo(Integer value) {
            addCriterion("teacher_id =", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdNotEqualTo(Integer value) {
            addCriterion("teacher_id <>", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdGreaterThan(Integer value) {
            addCriterion("teacher_id >", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("teacher_id >=", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdLessThan(Integer value) {
            addCriterion("teacher_id <", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdLessThanOrEqualTo(Integer value) {
            addCriterion("teacher_id <=", value, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdIn(List<Integer> values) {
            addCriterion("teacher_id in", values, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdNotIn(List<Integer> values) {
            addCriterion("teacher_id not in", values, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdBetween(Integer value1, Integer value2) {
            addCriterion("teacher_id between", value1, value2, "teacherId");
            return (Criteria) this;
        }

        public Criteria andTeacherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("teacher_id not between", value1, value2, "teacherId");
            return (Criteria) this;
        }

        public Criteria andVideoUuidIsNull() {
            addCriterion("video_uuid is null");
            return (Criteria) this;
        }

        public Criteria andVideoUuidIsNotNull() {
            addCriterion("video_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andVideoUuidEqualTo(String value) {
            addCriterion("video_uuid =", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidNotEqualTo(String value) {
            addCriterion("video_uuid <>", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidGreaterThan(String value) {
            addCriterion("video_uuid >", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidGreaterThanOrEqualTo(String value) {
            addCriterion("video_uuid >=", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidLessThan(String value) {
            addCriterion("video_uuid <", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidLessThanOrEqualTo(String value) {
            addCriterion("video_uuid <=", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidLike(String value) {
            addCriterion("video_uuid like", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidNotLike(String value) {
            addCriterion("video_uuid not like", value, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidIn(List<String> values) {
            addCriterion("video_uuid in", values, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidNotIn(List<String> values) {
            addCriterion("video_uuid not in", values, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidBetween(String value1, String value2) {
            addCriterion("video_uuid between", value1, value2, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoUuidNotBetween(String value1, String value2) {
            addCriterion("video_uuid not between", value1, value2, "videoUuid");
            return (Criteria) this;
        }

        public Criteria andVideoDurationIsNull() {
            addCriterion("video_duration is null");
            return (Criteria) this;
        }

        public Criteria andVideoDurationIsNotNull() {
            addCriterion("video_duration is not null");
            return (Criteria) this;
        }

        public Criteria andVideoDurationEqualTo(Integer value) {
            addCriterion("video_duration =", value, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationNotEqualTo(Integer value) {
            addCriterion("video_duration <>", value, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationGreaterThan(Integer value) {
            addCriterion("video_duration >", value, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("video_duration >=", value, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationLessThan(Integer value) {
            addCriterion("video_duration <", value, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationLessThanOrEqualTo(Integer value) {
            addCriterion("video_duration <=", value, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationIn(List<Integer> values) {
            addCriterion("video_duration in", values, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationNotIn(List<Integer> values) {
            addCriterion("video_duration not in", values, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationBetween(Integer value1, Integer value2) {
            addCriterion("video_duration between", value1, value2, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("video_duration not between", value1, value2, "videoDuration");
            return (Criteria) this;
        }

        public Criteria andVideoTypeIsNull() {
            addCriterion("video_type is null");
            return (Criteria) this;
        }

        public Criteria andVideoTypeIsNotNull() {
            addCriterion("video_type is not null");
            return (Criteria) this;
        }

        public Criteria andVideoTypeEqualTo(Integer value) {
            addCriterion("video_type =", value, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeNotEqualTo(Integer value) {
            addCriterion("video_type <>", value, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeGreaterThan(Integer value) {
            addCriterion("video_type >", value, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("video_type >=", value, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeLessThan(Integer value) {
            addCriterion("video_type <", value, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeLessThanOrEqualTo(Integer value) {
            addCriterion("video_type <=", value, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeIn(List<Integer> values) {
            addCriterion("video_type in", values, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeNotIn(List<Integer> values) {
            addCriterion("video_type not in", values, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeBetween(Integer value1, Integer value2) {
            addCriterion("video_type between", value1, value2, "videoType");
            return (Criteria) this;
        }

        public Criteria andVideoTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("video_type not between", value1, value2, "videoType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}